package com.mashang.bookkeepingbook.service;

import com.mashang.bookkeepingbook.pojo.*;
import com.mashang.bookkeepingbook.pojo.entity.Bill;
import com.mashang.bookkeepingbook.pojo.entity.Data;
import com.mashang.bookkeepingbook.pojo.entity.ExpensesIncome;

import java.util.List;

public interface BillService {
    public void addBill(BillDTO billDTO);

    List<Data> list(Integer userId, String yearMonth, Integer categoryId);

    ExpensesIncome billAmountCount(Integer userId, String yearMonth, Integer categoryId);

    Bill getById(Integer billId);

    void alterBill(AlterBillDTO alterBillDTO);

    void deleteBill(Integer billId);

    /**
     * 查询不同月份各个分类支出，入账，或者不计入收入
     * @param type
     * @param userId
     * @param year
     * @param month
     * @return
     */
    List<BillMonthlyListObject> selectAmountGroupByName(String type, Integer userId, String year, String month);
}
